package omq.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class OMQUtils 
{
	// ----------------------------------------------------------------
	// return current time as a string
	// use like : FileUtil.time("yyyy-MM-dd_HHmmss_")
	// ----------------------------------------------------------------
	public static String time(String dateFormat) 
	{
		    Calendar cal = Calendar.getInstance();
		    SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
		    return sdf.format(cal.getTime());
	}
}
